package qc.module.platform.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import qc.module.platform.dto.dbTable.DBTableDto;
import qc.module.platform.entity.QcDbTable;

import java.util.List;

/**
 * DBTableMapper
 *
 * @author QuCheng Tech
 * @since 2024/1/29
 */
@Mapper
public interface DBTableMapper {
    DBTableMapper MAPPER = Mappers.getMapper(DBTableMapper.class);

    QcDbTable toEntity(DBTableDto dto);

    DBTableDto toDto(QcDbTable en);

    List<DBTableDto> toDtoList(List<QcDbTable> list);
}
